From 55f7f7d0eecc87e89312a59a04c52654955d7f61 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 30 Jan 2023 11:56:50 -0500 Subject: [PATCH] gst: Fix synchronization It does not make sense to sync and wait in the same context, that is just a no-op. The intention of this code clearly was to sync in the gst context, and wait in the gdk one. That also matches what the gtk sink implementation in gstreamer does. --- modules/media/gtkgstsink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/media/gtkgstsink.c b/modules/media/gtkgstsink.c index 3c41af73f3..f9db6f6136 100644 --- a/modules/media/gtkgstsink.c +++ b/modules/media/gtkgstsink.c @@ -292,7 +292,7 @@ gtk_gst_sink_texture_from_buffer (GtkGstSink *self, sync_meta = gst_buffer_get_gl_sync_meta (buffer); if (sync_meta) { gst_gl_sync_meta_set_sync_point (sync_meta, self->gst_context); - gst_gl_sync_meta_wait (sync_meta, self->gst_context); + gst_gl_sync_meta_wait (sync_meta, self->gst_app_context); } texture = gdk_gl_texture_new (self->gdk_context, -- 2.30.2